#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int m = 0, n = 0, k = 0;
	scanf("%d %d", &m, &n);
	k = (m > n ? m : n);
	while (1)
	{
		if (k % m == 0 && k % n == 0)
		{
			break;
		}
		k++;
	}
	printf("%d\n", k);
}